<template>
  <div class="login-box">
    <div class="lb-header">
      <!-- Vue中借助router-link标签实现路由的切换 -->
      <router-link class="login-box-link" active-class="active" to="/login"
        >登录</router-link
      >
      <router-link class="signup-box-link" active-class="active" to="/registe"
        >注册</router-link
      >
    </div>
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: "welcome",
};
</script>

<style scoped>
body {
  background-color: rgb(204, 212, 230);
  height: 100%;
}

.login-box {
  position: relative;
  margin: 10px auto;
  width: 500px;
  height: 380px;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  -webkit-box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.33);
  -moz-box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.33);
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.33);
}

.lb-header {
  position: relative;
  color: #00415d;
  margin: 5px 5px 10px 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
  height: 28px;
}

.lb-header a {
  margin: 0 25px;
  padding: 0 20px;
  text-decoration: none;
  color: #666;
  font-weight: bold;
  font-size: 15px;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  transition: all 0.1s linear;
}

.lb-header .active {
  color: #029f5b;
  font-size: 18px;
}

.user-login,
.user-signup {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
  margin-top: 20px;
  text-align: center;
}
</style>